{if !empty($contatos)}
    {foreach from=$contatos item=contato}
        <div class="row">
            <div class="form-group col-md-5">
                <label class="col-xs-4">Tipo de Contato</label>
                <div class="col-md-8">
                    <select name="tipo_contato[]" class="chosen-select">
                        <option value="">Selecione</option>
                        {foreach from=$tipos_contatos item=item}
                            <option value="{$item->ID}" {if $item->ID == $contato->TIPOS_CONTATOS_ID}selected="selected" {/if}>{$item->TIPO_CONTATO}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="form-group col-md-5">
                <label class="col-xs-2">Contato</label>
                <div class="col-xs-10">
                    <input type="text" name="contato[]" class="form-control" value="{$contato->DESCRICAO}" />
                </div>
            </div>
            <input type="hidden" name="contato_id[]" value="{$contato->ID}" />
            <div class="form-group col-md-2">
                <button type="button" class="btn btn-flat btn-danger" onclick="del_contato(this, {$data->id}, {$contato->ID})"><i class="fa fa-minus"></i></button>
            </div>
        </div>
    {/foreach}
{/if}

{literal}
    <script type="text/javascript">
        $('.chosen-select').chosen({width:"100%"});
    </script>
{/literal}